package com.ecb.business.service;

import com.ecb.business.dto.audit.SearchAuditDTO;
import com.ecb.business.po.ChainAuditPO;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface AuditService {
    boolean addAudit(String operateType, String operateTarget, String operateUser, String oldData, String newData);

    List<ChainAuditPO> searchAudit(String operateType, String operateTarget, String operateUser, String startTime, String endTime);
    List<ChainAuditPO> searchAudit(SearchAuditDTO searchAuditDTO);

    List<Map> findAllByCreateTimeBetweenAndOperateTarget(Date startTime, Date endTime, String operateTarget);
}
